#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <math.h>
int main() {
    char str[100];
    scanf("%s", str);
    int arr[100];
    for (int i = 0; i < strlen(str); i++)
    {
        int count = 0;
        for (int j = 0; j < strlen(str); j++)
        {
            if (str[j] == str[i])
            {
                count++;
            }
        }
        arr[i] = count;
    }
    int maxn = arr[0], minn = arr[0];
    for (int i = 0; i < strlen(str); i++)
    {
        if (arr[i] > maxn)
        {
            maxn = arr[i];
        }
        if (arr[i] < minn)
        {
            minn = arr[i];
        }
    }
    int t = maxn - minn, flag = 1;
    for (int i = 2; i <= sqrt(t); i++)
    {
        if (t % i == 0)
        {
            flag = 0;
            break;
        }
    }
    if (t == 1 || t == 0)
    {
        flag = 0;
    }
    if (flag)
    {
        printf("Lucky Word\n");
        printf("%d", t);
    }
    else {
        printf("No Answer\n");
        printf("0");
    }
    return 0;
}